﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.ProjectPages.EditProjectSettings, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="CustomFieldCollection" Src="~/_controltemplates/Kiiro/CustomFieldCollection.ascx" %>
<%@ Register TagPrefix="v2" TagName="AttachmentControl" Src="~/_controltemplates/Kiiro/AttachmentControl.ascx" %>
<%@ Register TagPrefix="v2" TagName="FormButtons" Src="~/_controltemplates/Kiiro/FormButtons.ascx" %>

<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitProjectPlan);
    $(InitSandboxEnabled);
    $(InitDatePickers);
  </script>

  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Basic Information</h2>
              </div>
              <div class="panel-content">
                <div id="errorList" runat="server">
                </div>
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>
                        <label for="title">
                          Project Title <span class="required">*</span></label></dt>
                      <dd>
                        <asp:TextBox ID="txtProjectTitle" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblProjectTitleMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Give the project an easily identifiable title.</h3>
                      </dt>
                      <dd>
                        The title will be used to identify the project in the dashboard view, emails and
                        project listing screen. Maximum length of 200 characters.</dd>
                    </dl>
                  </div>
                  <div id="startdate" runat="server" class="row">
                    <dl>
                      <dt>
                        <label for="start-date">
                          Start Date</label></dt>
                      <dd>
                        <asp:TextBox ID="txtStartDate" runat="server" CssClass="datepicker input" />
                      </dd>
                      <dd>
                        <asp:Label ID="lblStartDateMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          The projected start date for the project.</h3>
                      </dt>
                      <dd>
                        Date format is "mm/dd/yyyy". (e.g: 10/29/2000)
                      </dd>
                    </dl>
                  </div>
                  <div id="enddate" runat="server" class="row">
                    <dl>
                      <dt>
                        <label for="start-date">
                          End Date</label></dt>
                      <dd>
                        <asp:TextBox ID="txtEndDate" runat="server" CssClass="datepicker input" />
                      </dd>
                      <dd>
                        <asp:Label ID="lblEndDateMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          The projected end date for the project.</h3>
                      </dt>
                      <dd>
                        Date format is "mm/dd/yyyy". (e.g: 10/29/2000)
                      </dd>
                    </dl>
                  </div>
                  <div id="timemetric" runat="server" class="row">
                    <dl>
                      <dt>
                        <label for="time-metric">
                          Work is Entered In</label></dt>
                      <dd>
                        <asp:RadioButtonList ID="rblTimeMetric" runat="server" CssClass="radio" RepeatDirection="Horizontal"
                          RepeatLayout="Flow">
                          <asp:ListItem Value="2" Text="Minutes"></asp:ListItem>
                          <asp:ListItem Value="1" Text="Hours"></asp:ListItem>
                          <asp:ListItem Value="0" Text="Days" Selected="True"></asp:ListItem>
                          <asp:ListItem Value="4" Text="Weeks"></asp:ListItem>
                          <asp:ListItem Value="3" Text="Months"></asp:ListItem>
                        </asp:RadioButtonList>
                      </dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Select the default time metric.</h3>
                      </dt>
                      <dd>
                        The time metric will be used to measure the amount of work for a task or issue.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Project Status</dt>
                      <dd>
                        <asp:RadioButtonList ID="rbProjectStatus" runat="server" CssClass="radio" RepeatDirection="Horizontal"
                          RepeatLayout="Flow">
                          <asp:ListItem Value="1" Selected="True">Being Planned</asp:ListItem>
                          <asp:ListItem Value="0">Active</asp:ListItem>
                          <asp:ListItem Value="2">Closed</asp:ListItem>
                        </asp:RadioButtonList>
                      </dd>
                      <dd>
                        <asp:Label ID="lblProjectStatusMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Define the current status of the project.</h3>
                      </dt>
                      <dd>
                        The project status influences what data (if any) will be displayed in the dashboard
                        views.</dd>
                    </dl>
                  </div>
                  <asp:Panel runat="server" ID="pnlAttachments" CssClass="row">
                    <v2:AttachmentControl id="attachments" runat="server" Title="Plan File" />
                    <dl>
                      <dt>
                        <h3>
                          Select your plan file.</h3>
                      </dt>
                      <dd>
                        Browse to the MSProject plan file that defines the work breakdown, tasks, and resources
                        for this project.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlWPSandboxEnabled" runat="server" CssClass="row">
                    <dl>
                        <dt>Web Part Tab Enabled</dt>
                        <dd><asp:CheckBox ID="ckbWPSandboxEnabled" runat="server" CssClass="jq_sandboxEnabled" /></dd>
                        <dd><asp:Label ID="lblWPSandboxEnabledMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                        <dt><h3>Web Part Tab Enabled</h3></dt>
                        <dd>The Kiiro web part tab is a page where you can display additional Kiiro and 3rd party web parts.</dd>
                    </dl>
                </asp:Panel>                                    
                  <asp:Panel ID="pnlWPSandboxNavText" runat="server" CssClass="jq_sandboxNavText row borderless">
                    <dl>
                        <dt>Web Part Tab Navigation Text</dt>
                        <dd><asp:TextBox ID="txtWPSandboxNavText" runat="server" CssClass="input" /></dd>
                        <dd><asp:Label ID="lblWPSandboxNavTextMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                        <dt><h3>Web Part Tab Navigation Text</h3></dt>
                        <dd>The text to display for the web part navigation tab. Maximum length of 30 characters.</dd>
                    </dl>
                </asp:Panel>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Detailed Information</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>
                        <label for="description">
                          Project Description</label></dt>
                      <dd>
                        <asp:TextBox ID="txtProjectDescription" runat="server" TextMode="MultiLine" Rows="5"
                          CssClass="textarea" /></dd>
                      <dd>
                        <asp:Label ID="lblProjectDescriptionMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Provide a short description of what the project is about.</h3>
                      </dt>
                      <dd>
                        Maximum length of 1000 characters.</dd>
                    </dl>
                  </div>
                  <div class="row borderless">
                    <dl>
                      <dt>
                        <label for="description">
                          Project Status Note</label></dt>
                      <dd>
                        <asp:TextBox ID="txtProjectSummary" runat="server" TextMode="MultiLine" Rows="5"
                          CssClass="textarea" /></dd>
                      <dd>
                        <asp:Label ID="lblProjectSummaryMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Provide a short status note for the project.</h3>
                      </dt>
                      <dd>
                        Maximum length of 1000 characters.</dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <v2:CustomFieldCollection id="v2CustomFieldCollection" runat="server" />
        <v2:FormButtons id="v2FormButtons" runat="server" />
      </div>
    </div>
  </div>
</asp:Content>
